<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>

        console.log([][Symbol.iterator])

        for (let x of ['a', 'b']) {
            console.log(x)

        }

        console.log(""[Symbol.iterator])
        for (let x of "abc") {
            console.log(x)

        }

        let map = new Map().set('a', 1).set('b', 2);
        console.log(map[Symbol.iterator]);
        for (let pair of map) {
            console.log(pair);
        }
        let set = new Set().add('a').add('b');
        for (let x of set) {
            console.log(x);
        }


        function printArgs() {
            for (let x of arguments) {
                console.log(x);
            }
        }
        printArgs('a', 'b');



    </script>
</body>

</html>